/**
 * 
 */
package base.util;

import java.util.Calendar;

/**
 * @author bliu
 *
 */
public class CalendarTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Calendar earlyMonth = Calendar.getInstance();
		earlyMonth.set(2013, 3, 1);
		//earlyMonth.set(Calendar.DATE, -1);
		earlyMonth.add(Calendar.MONTH, -1);
		
		earlyMonth.add(Calendar.DATE, 1);
		System.out.println(String.format("%1$tY-%1$tm-%1$td", earlyMonth));
	}

}
